/*
 * @Author: your name
 * @Date: 2021-06-02 10:16:45
 * @LastEditTime: 2021-06-03 16:48:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bazai_island_api\app\lib\enum.js
 */

function isThisType(val) {
  const self = this;
  for (let key in self) {
    if (this[key] == val) {
      return true
    }
  }
  return false
}
// 登录类型
const LoginType = {
  USER_MINI_PROGRAM: 100,
  USER_EMAIL: 101,
  USER_MOBILE: 102,
  ADMIN_EMAIL: 200,
  isThisType
}

const ArtType = {
  MOVIE: 100,
  MUSIC: 200,
  SENTENCE: 300,
  BOOK: 400,
  isThisType
}

module.exports = {
  LoginType,
  ArtType
}
